package com.info.zhiduoduo.admin.model.formbean.invoice;

import com.info.zhiduoduo.common.validator.IntIn;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Positive;

@Data
public class MainEnterpriseInventoryRecordFormBean {


    @ApiModelProperty("记录id, 0:新建 >0:编辑")
    private Integer id;

    @ApiModelProperty("主体企业id")
    private Integer companyId;

    @IntIn(value = {1,2}, message = "请选择发票类型")
    @ApiModelProperty("发票类型: 1:普票 2:专票")
    private Integer invoiceType;

    @IntIn(value = {1,2}, message = "请选择发票版本")
    @ApiModelProperty("版本: 1:一万元版 2:十万元版")
    private Integer amountType;

    @Positive
    @ApiModelProperty("发票数量")
    private Integer invoiceNum;


}
